<template>
  <div id="app">
    <musicplayer :is-homepage="isHomepage"></musicplayer>
    <div id="main-content" class="container" v-if="!isHomepage">
      <router-view></router-view>
    </div>    
  </div>
</template>

<script>
import musicplayer from './components/MusicPlayer';

export default {
  name: 'app',
  components: {
    musicplayer,
  },
  computed: {
    isHomepage() {
      return this.$route.path === '/';
    },
  },
};
</script>

<style lang="scss">
@import './assets/css/reset.css';
@import './scss/theme.scss';

[v-cloak] {
  display: none;
}
html, body {
  width: 100%;
  height: 100%;
  font-size: 12px;
}
a {
  text-decoration: none;
}
#app {
  font-family: Helvetica, Tahoma, Arial, "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  height: 100%;
}
.container {
  width: 1280px;
  margin: auto;
}


#main-content {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 40px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 1px 1px 10px 1px $color_primary;
}
@media (max-width: 1440px) {
  .container{
    width: 1024px;
  }
}
</style>

